Skip to content

Conversation

@tatchiuleung
Copy link

Issue: #2409

@tatchiuleung tatchiuleung requested review from a team, apeabody and ericyz as code owners August 22, 2025 16:28
@google-cla
Copy link

google-cla bot commented Aug 22, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@tatchiuleung tatchiuleung force-pushed the add-auto-monitoring-config branch 3 times, most recently from 5151105 to dafb16b Compare August 22, 2025 16:39
@tatchiuleung tatchiuleung force-pushed the add-auto-monitoring-config branch from dafb16b to ba27a17 Compare August 22, 2025 16:51
@apeabody
Copy link
Collaborator

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

@apeabody
Copy link
Collaborator

/gcbrun

@NeckBeardPrince
Copy link

Can we get a review on this? Would be nice to get this added in.

@apeabody
Copy link
Collaborator

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for auto_monitoring_config within the managed_prometheus block for GKE clusters. A new variable, monitoring_auto_monitoring_config_scope, is introduced to control this feature. The changes are consistently applied across all relevant modules, templates, and documentation files. The implementation is correct and follows the established patterns in the repository. I have one minor suggestion to improve the validation error message for the new variable to make it more descriptive for users.

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

],
var.monitoring_auto_monitoring_config_scope
)
error_message = "'monitoring_auto_monitoring_config_scope' value is invalid"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The validation error message is a bit generic. It would be more helpful to the user if it listed the allowed values.

    error_message = "'monitoring_auto_monitoring_config_scope' must be one of 'ALL' or 'NONE'."

@apeabody
Copy link
Collaborator

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants